/**
 * Created by larry on 2017/2/27.
 */
import {createStore, applyMiddleware, compose} from 'redux';
import reducer from '../reducers/index';
import thunk from 'redux-thunk';

const enhancer = compose(
  //你要使用的中间件，放在前面
  applyMiddleware(thunk),
)

const store = createStore(
  reducer,
  enhancer
);

export default store;
